<?php
	
	class NodeModel extends Model{
		
		public function getAppNodeId(){			
			$con     =    "name='admin' and pid=0";
			$data    =    $this->field('id')->where($con)->find();	
			return $data ? $data['id'] : null;
		}
		
		
		
	
	
	}
?>